@layout("/common/_container.html",{js:["/assets/dealerLevel/dealerLevel_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="dealerLevelForm" lay-filter="dealerLevelForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>
                <div class="layui-form-item">
                    <label class="layui-form-label">选择经销商部门<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="pid" name="sysUserId" type="hidden">
                        <input id="pName" placeholder="请输入上级名称" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">经销商等级<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <select id="levelId" name="levelId" lay-verify="">
                            <option value="" selected>请选择经销商等级</option>
                            @for(item in levels){
                            <option value="${item.id}">${item.levelName}</option>
                            @}
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">所在区域<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="areaId" name="areaId" type="hidden">
                        <input id="area_Id" name="aId" placeholder="请选择经销商区域" type="text"
                               class="layui-input" lay-verify="required" required autocomplete="off"/>

                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">详细地址<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="address" name="address" placeholder="请输入经销商详细地址" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="remark" name="remark" placeholder="请输入经销商备注" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">信用额度<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="credit" name="credit" placeholder="请输入经销商信用额度" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}